<?php
	chong_pha_hoai(); 
?>
<?php
	echo "Trang danh sách sản phẩm";
	?>
<center>
	<table width="1000px" border="1">
	  <tr>
		<td>Xem loại sản phẩm:
			<form action="" method="post">
				<?php
					echo "<select name='id_loaisp'>";
						$tv="select * from loaisp where thuoc_id_loaisp=0";
						$tv_1=mysql_query($tv);
						while($tv_2=mysql_fetch_array($tv_1))
						{
							echo"<option value='$tv_2[id_loaisp]'>";
									echo $tv_2['ten_loaisp'];
							echo"</option>";
							$xac_dinh_menu_con_123=xac_dinh_menu_con_123($tv_2['id_loaisp']);
							if($xac_dinh_menu_con_123=="yes")
							{
								de_quy_menu_fff($tv_2['id_loaisp']);
							}
						}
					echo "</select>";
				?>
				<input type="hidden" name="send_id" value="send_id">
				<input type="submit" value="Xem">
			</form>
		</td>
	  </tr>
	  <tr>
		<td>
			<?php
				if($_POST['send_id']=="send_id")
				{
					$id=$_POST['id_loaisp'];
					$tv="select * from loaisp where id_loaisp='$id'";
					$tv_1=mysql_query($tv);
					$tv_2=mysql_fetch_array($tv_1);
					echo "<div class='title_contain'>";
						echo $tv_2['ten_loaisp'];
					echo "</div>";
					include("chuc_nang/du_lieu/san_pham/xuat.php");
				}				
			?>
		</td>
	  </tr>
	</table>
</center>
